/**
 *
 * @Title: BfglActivity.java
 * @Package com.idrem.views.bf
 * @Description: TODO(用一句话描述该文件做什么)
 * @author WangZhengCai
 * @date 2012 2012-11-13 下午8:07:59
 * @version V1.0
 *
 */

package com.idrem.views.bf;

import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;

/**
 * 
 * @ClassName: BfglActivity
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @author WangZhengCai
 * @date 2012 2012-11-13 下午8:07:59
 * 
 * 
 */
public class BfglActivity extends TabActivity {

	private static String TAG = "BfglActivity";

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

//		AppLog.i(TAG, " BfglActivity onCreate called");
		TabHost tabHost = getTabHost();

		// TabWidget tabWidget = tabHost.getTabWidget();
		tabHost.addTab(tabHost.newTabSpec("tab1").setIndicator("线内门店")
				.setContent(new Intent(this, MdlbActivity.class)));
		tabHost.addTab(tabHost.newTabSpec("tab3").setIndicator("线外门店")
				.setContent(new Intent(this, MdSearchActivity.class)));
		tabHost.addTab(tabHost.newTabSpec("tab2").setIndicator("地图")
				.setContent(new Intent(this, MapActivity.class)));
		// for (int i = 0; i < tabWidget.getChildCount(); i++) {
		// // update height weight for Tab host
		// tabWidget.getChildAt(i).getLayoutParams().height = 80;
		// tabWidget.getChildAt(i).getLayoutParams().width = 240;
		// // update title font size
		// TextView tv = (TextView) tabWidget.getChildAt(i).findViewById(
		// android.R.id.title);
		// tv.setTextSize(25);
		// tv.setTextColor(this.getResources().getColorStateList(R.color.blue));
		// }

	}
}
